<template>
  

<el-form ref="form" :model="form" label-width="80px">
  <el-form-item label="活动名称">
    <el-input v-model="form.name"></el-input>
  </el-form-item>
 
  <el-form-item>
  <el-cascader
    v-model="value"
    :options="options"
    @change="handleChange"></el-cascader>
  </el-form-item>
  <el-form-item>
  <el-button type="primary" plain @click="open">主要按钮</el-button>
  </el-form-item>
  <el-form-item>
    <el-button type="primary" @click="onSubmit">立即创建</el-button>
    <el-button>取消</el-button>
  </el-form-item>
</el-form>
</template>
<script>
  export default {
    data() {
       
     return {
       form: {
          name: '',
        },
      input: "",
      value: [],
      options: [
        {
          value: "女装",
          label: "女装",
          children: [
            {
              value: "1",
              label: "上装",
              children: [
                {
                  value: "Txue",
                  label: "T恤",
                },
                {
                  value: "chenshan",
                  label: "衬衫",
                },
                {
                  value: "maoyi",
                  label: "毛衣",
                },
                {
                  value: "majia",
                  label: "马甲",
                },
              ],
            },
            {
              value: "2",
              label: "流行趋势",
              children: [
                {
                  value: "xiaoheiqun",
                  label: "小黑裙",
                },
                {
                  value: "babiku",
                  label: "芭比裤",
                },
                {
                  value: "maoyiwaitao",
                  label: "毛衣外套",
                },
                {
                  value: "kuotuishenku",
                  label: "阔腿神裤",
                },
                {
                  value: "xizhuangdayi",
                  label: "西装大衣",
                },
                {
                  value: "baozangyangmao",
                  label: "宝藏羊毛",
                },
              ],
            },
          ],
        },
        {
          value: "2",
          label: "男装",
          children: [
            {
              value: "3",
              label: "上装",
              children: [
                {
                  value: "Txue",
                  label: "T恤",
                },
                {
                  value: "chenshan",
                  label: "衬衫",
                },
                {
                  value: "weiyi",
                  label: "卫衣",
                },
                {
                  value: "daunwaitao",
                  label: "短外套",
                },
                {
                  value: "yurongfu",
                  label: "羽绒服",
                },
                {
                  value: "fengyi",
                  label: "风衣",
                },
                {
                  value: "piyi",
                  label: "皮衣",
                },
              ],
            },
            {
              value: "4",
              label: "裤子",
              children: [
                {
                  value: "gongzhuangku",
                  label: "工装裤",
                },
                {
                  value: "xiuxianku",
                  label: "休闲裤",
                },
                {
                  value: "gognzhuagnduanku",
                  label: "工装短裤",
                },
                {
                  value: "xiuxianduanku",
                  label: "休闲短裤",
                },
                {
                  value: "niuzaiku",
                  label: "牛仔裤",
                },
                {
                  value: "niuzaiduanku",
                  label: "牛仔短裤",
                },
              ],
            },
          ],
        },
        {
          value: "3",
          label: "电子产品",
          children: [
            {
              value: "Vivoshouji",
              label: "Vivo手机",
              children: [
                {
                  value: "IQOONeo1",
                  label: "VivoIQOONeo1",
                },
                {
                  value: "IQOONeo2",
                  label: "VivoIQOONeo2",
                },
                {
                  value: "IQOONeo3",
                  label: "VivoIQOONeo3",
                },
                {
                  value: "IQOONeo4",
                  label: "VivoIQOONeo4",
                },
                {
                  value: "IQOONeo5",
                  label: "VivoIQOONeo5",
                },
              ],
            },
            {
              value: "shoujipeijian",
              label: "手机配件",
              children: [
                {
                  value: "shoujike",
                  label: "手机壳",
                },
                {
                  value: "shoujitiemo",
                  label: "手机贴膜",
                },
                {
                  value: "shoujierji",
                  label: "手机耳机",
                },
                {
                  value: "shujuxian",
                  label: "数据线",
                },
                {
                  value: "chongdianbao",
                  label: "充电宝",
                },
                {
                  value: "zipaigan",
                  label: "自拍杆",
                },
                {
                  value: "shoujizhijia",
                  label: "手机支架",
                },
                {
                  value: "fangchensai",
                  label: "防尘塞",
                },
                {
                  value: "shoujiguajian",
                  label: "手机挂件",
                },
                {
                  value: "shoujichongdianqi",
                  label: "手机充电器",
                },
                {
                  value: "chezaizhijia",
                  label: "车载支架",
                },
              ],
            },
            {
              value: "diannaobijiben",
              label: "电脑笔记本",
              children: [
                {
                  value: "shubiaojianpan",
                  label: "鼠标键盘",
                },
                {
                  value: "xianshiqi",
                  label: "显示器",
                },
                {
                  value: "pingbandiannao",
                  label: "平板电脑",
                },
                {
                  value: "zhengtiyitiji",
                  label: "整体一体机",
                },
                {
                  value: "Lenovo",
                  label: "联想笔记本",
                  children: [
                    {
                      value: "Lenovoxiaoxinchao",
                      label: "联想小新潮",
                    },
                    {
                      value: "Lenovoxiaozhengjiuzhe",
                      label: "联想拯救者",
                    },
                  ],
                },
              ],
            },
          ],
        },

        {
          value: "4",
          label: "零食",
          children: [
            {
              value: "ertonglingshi",
              label: "儿童零食",
            },
            {
              value: "wanghongIp",
              label: "网红Ip",
            },
            {
              value: "lingshidalibao",
              label: "零食大礼包",
            },
            {
              value: "quweishiwan",
              label: "趣味食玩",
            },
          ],
        },
      ],
    };
      
    },
    methods: {
      onSubmit() {
        console.log('submit!');
      },
         handleChange(label) {
        console.log(label);
      }
    }
  }
</script>